/*! ******************************************************************************
 *
 * Created on 2022年3月6日
 *
 * Copyright(c) YuZhou Big Data Laboratory CO.,Ltd, 2022.  All rights reserved.
 *
 *******************************************************************************
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 ******************************************************************************/
package org.yzbdl.lanius.ui.spoon.middle.ext;

import org.yzbdl.lanius.ui.spoon.middle.ext.progress.ProgressComposite;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.pentaho.di.ui.core.gui.GUIResource;

/**
 * 信息中心，非转换日志输出用
 * @author tanpeng@yzbdl.ac.cn
 *
 */
public class ConsoleTabItem extends MiddleExtTabItem {

	private String name = "信息";
	private Image image = GUIResource.getInstance().getImageExploreSolutionSmall();

	private ProgressComposite progressComposite;

	/**
	 * @param parent
	 * @param style
	 */
	public ConsoleTabItem(MiddleExt middleExt) {
		super(middleExt.getTabFolder(), SWT.SINGLE | SWT.MULTI | SWT.V_SCROLL);

		this.setText(name);
		this.setImage(image);
		this.setMiddleExt(middleExt);

		ProgressComposite progressComposite = new ProgressComposite(middleExt.getTabFolder(), SWT.NONE);
		this.setProgressComposite(progressComposite);
		this.setControl(progressComposite);
	}

	public ProgressComposite getProgressComposite() {
		return progressComposite;
	}

	public void setProgressComposite(ProgressComposite progressComposite) {
		this.progressComposite = progressComposite;
	}

}
